package com.design.pattern.clinic.controller;

import com.design.pattern.clinic.structural.pipeline.calcule.AdditionalInput;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import reactor.core.publisher.Mono;

@Tag(name = "管道测试")
@RestController
@RequestMapping("pipeline")
public class PipelineController {
    @Operation(summary = "测试内容")
    @GetMapping("/just")
    public Mono<String> just() {
        return Mono.just("hello ....");
    }

    @Operation(summary = "简单运算")
    @PostMapping("additional")
    public Mono<String> additional(@RequestBody AdditionalInput input) {
        return Mono.just("123123");
    }

}
